import React, { Component } from 'react';
import Li from './Li'
export default class List extends Component {
  render() {
    let { list } = this.props;
    return (
      <div>
        {list.map((item) => {
          return <Li item={item} key={item.id} {...this.props}></Li>
        })}
      </div>
    )
  }
}